package com.fjh.shop.common.exceptions.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum Resp {
    SUCCESS(20000, "success"),
    FAIL(-1, "fail"),
    INVALID_PASSWORD(30001, "用户名不存在或密码不正确"),
    INVALID_USERNAME(30002, "用户名不存在或密码不正确"),
    TOKEN_MISSING(30003, "缺少token"),
    OPENID_MISSING(30004, "缺少openid"),
    MEMBER_NOT_EXIST(30005, "用户不存在"),
    CAPTCHA_MISSING(30006, "缺少验证码"),
    CAPTCHA_ERROR(30007, "验证码错误"),
    CAPTCHA_EXPIRED(30008, "验证码已过期"),
    MOBILE_IS_REGISTERED(30009, "手机号已被注册"),
    UNAUTHORIZED(300010, "未授权"),
    INVALID_PARAM(300011, "参数不完整"),
    UPDATE_FAILED(300012, "更新失败");
    private final Integer code;
    private final String message;
}
